package cn.zhizihua.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {

    @TableId(value = "userId",type = IdType.AUTO)
    private Integer userId;
    private String userName; //账号  用户名
    private String password; //密码
    private String realName; //真实姓名
    private Integer gender; //性别  0 男  1 女
    private String phone; //手机号
    private String userImg; //头像地址
    @TableLogic
    private Integer delTag; //删除标记(1 正常 0 删除)

}
